package com.xiaoshuidi.cloud.module.rooms.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xiaoshuidi.cloud.framework.mybatis.core.mapper.BaseMapperX;
import com.xiaoshuidi.cloud.module.rooms.controller.admin.roomequipment.vo.RoomEquipmentPageReqVO;
import com.xiaoshuidi.cloud.module.rooms.controller.admin.roomequipment.vo.RoomEquipmentPageResp;
import com.xiaoshuidi.cloud.module.rooms.controller.admin.roomequipment.vo.RoomEquipmentQueryPd;
import com.xiaoshuidi.cloud.module.rooms.controller.admin.roomequipment.vo.RoomEquipmentQueryResp;
import com.xiaoshuidi.cloud.module.rooms.pojo.RoomEquipment;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 房间资产 Mapper 接口
 * </p>
 *
 * @author Feng
 * @since 2023-04-27
 */
public interface RoomEquipmentMapper extends BaseMapperX<RoomEquipment> {

    IPage<RoomEquipmentPageResp> pageRoomEquipmentByRoomId(Page<RoomEquipment> page, @Param("reqVO") RoomEquipmentPageReqVO reqVO);

    List<RoomEquipmentQueryPd> queryPdList(@Param("apartmentIds") List<Long> apartmentIds);

    RoomEquipmentQueryResp queryRoomEquipmentById(@Param("id") Integer id);

    List<RoomEquipmentQueryResp> getByRoomId(@Param("roomId")Long roomId);

    void unbindingEquipment(@Param("roomId")Long roomId);
}
